home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 1.iso
/
gear
/
repeat
/
volume.c
< prev
next >
Wrap
Text File
|
1991-10-18
|
611b
|
33 lines
extern int SND_elevol_init();
extern int SND_elevol_read();
extern int SND_elevol_set();
extern int SND_elevol_mute();
extern int SND_elevol_all_mute();
void volume(mode,l_sw,l_vol,r_vol)
int mode,l_sw,*l_vol,*r_vol;
{
int j1;
switch (mode) {
case 0:
break;
case 1:
j1=SND_elevol_init();
break;
case 2:
j1=SND_elevol_read(l_sw,*l_vol,*r_vol);
break;
case 3:
j1=SND_elevol_set(l_sw,*l_vol,*r_vol);
break;
case 4:
j1=SND_elevol_mute(l_sw);
break;
default:
j1=SND_elevol_all_mute(l_sw);
break;
}
}
/* program end */